<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class ObjectModel
{
	   public function set_vars(){
	      $CI =& get_instance();
	      $vars =get_class_vars(get_class($this));
	      foreach($vars as $name=>$val)
	      {
	      	if(isset($this->$name))
	      		$this->$name=$CI->input->post($name);
	      }
	   }
}